package ${content.entity.classPackage};

import lombok.Getter;
import lombok.Setter;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("${content.table.tableName}")
@Getter
@Setter
public class ${content.entity.className} {

	<#list content.entity.attrs as item>
	<#if item.field!='id'>
	private ${item.javaType} ${item.field}; 
	</#if>
	<#if item.field=='id'>
	@TableId(type = IdType.AUTO)
	private ${item.javaType} ${item.field}; 
	</#if>
	</#list>
}
